package com.lsl.test;

import java.io.Serializable;

/**
 * @author lishuailong
 * @create 2020-07-16 16:43
 */
public class Creature<T> implements Serializable {
    public char gender;
    public double weight;
    private void breath(){
        System.out.println("生物呼吸！");
    }
    private void eat(){
        System.out.println("生物吃东西！");
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
